package com.example.demo.model.component;

//import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Administrator
 */
//@FeignClient(name = "influxDbApi", url = "${spring.influx.url}")
public interface InfluxDatabaseComponent {

    /**
     * 查询数据库
     *
     * @param q  查询语句
     * @param db 数据库
     * @return
     * @throws Exception
     */
    @PostMapping("/query")
    String query(@RequestParam String db, @RequestParam String q) throws Exception;

}
